package util

import (
	"strings"
	"github.com/gogf/gf/frame/g"
)

// 写入日志
func WriteLog(path string, data interface{}) {
	logPath := strings.Split(path, "/")
	log := g.Log().Async().Stdout(false)
	for _, v := range logPath {
		log.Cat(v)
	}
	log.Print(data)
}